<?php
    $title = 'Agregar Menú';
    $this->headTitle($title);
?>
<h1><?php echo $this->titulo; ?></h1>
<?php
        $form = $this->form;
        $form->prepare();
        $form->setAttributes(array(
            'action' => $this->url . '/application/menu/add',
            'method' => 'post'
        ));


        echo $this->form()->openTag($form);
        echo $this->formHidden($form->get('id'));


        // echo $this->formRow($form->get('titulo'));
        //// echo $this->formRow($form->get('descripcion'));

        echo $this->formLabel($form->get('titulo'));
        echo $this->formInput($form->get('titulo'));
        echo $this->formElementErrors($form->get('titulo'));
        echo $this->formLabel($form->get('descripcion'));
        echo $this->formInput($form->get('descripcion'));
        echo $this->formElementErrors($form->get('descripcion'));
        echo $this->formLabel($form->get('comando'));
        echo $this->formInput($form->get('comando'));
        echo $this->formElementErrors($form->get('comando'));
        echo $this->formLabel($form->get('menuPadreId'));
        echo $this->formSelect($form->get('menuPadreId'));
        echo $this->formElementErrors($form->get('menuPadreId'));
?>
<p>
<?php
        echo $this->formSubmit($form->get('ok'));
        echo $this->formSubmit($form->get('cancelar'));
?>

</p>
<?php
echo $this->form()->closeTag();
?>

